cmake_minimum_required(VERSION 3.10)
project(test VERSION 0.1)

set(CMAKE_CXX_STANDARD_REQUIRED True)
set(CMAKE_CXX_STANDARD 11)

add_library(hello SHARED libs/hello.cpp)

add_executable(main.out main.cpp)
target_link_libraries(main.out hello)

install(TARGETS main.out DESTINATION bin)
install(TARGETS hello DESTINATION lib)
install(FILES libs/hello.h DESTINATION include)
